<template>
	<view class="intention-box">
		<view class="title">
			<view class="title-item1">
				编辑接单信息
			</view>
			<view class="title-item2">
				编辑接单信息，让雇主更了解你～
			</view>
		</view>
		<view class="intention-type">
			<view class="name">团队类型</view>
			<view class="change">
				<view :class="[index == typeIndex ? 'action' : 'type']" v-for="(item,index) in IntentionType"
					:key='index' @click="checkIndex(item,index)">
					{{item.name}}
				</view>
			</view>
		</view>
		<view class="intention-post" @click="jumpclassification()">
			<view class="title">
				服务技能
			</view>
			<view class="content">
				<view class="name">
					<text class="input-box" v-if="addForm.type_text">{{addForm.type_text.join()}}</text></text> <text
						v-else>请填写服务技能</text>
				</view>
				<i class="iconfont fontclassarrow_right"></i>
			</view>
		</view>
		<view class="intention-money">
			<view class="title">
				从业经验
			</view>
			<view class="content">
				<picker style="width: 100%;height: 100%;" @change="agePickerChange" :value="form.age_index"
					:range="age_arr" range-key="title">
					<view class="picker-view">
						<view class="picker" v-if="addForm.age_text">{{addForm.age_text}}</view>
						<view class="please" v-else>
							{{form.age_index>-1?areas_arr[form.age_index]['title']:'请选择'}}
						</view>
						<i class="iconfont fontclassarrow_right"></i>
					</view>
				</picker>
			</view>
		</view>
		<view class="intention-address">
			<view class="title">
				常驻地区
			</view>
			<view class="content">
				<picker style="width: 100%;height: 100%;" @change="Pickerareas" :value="form.areas_index"
					:range="areas_arr" range-key="title">
					<view class="picker-view">
						<view class="picker" v-if="addForm.areas_text">{{addForm.areas_text}}</view>
						<view class="please" v-else>
							{{form.areas_index>-1?areas_arr[form.areas_index]['title']:'请选择'}}
						</view>
						<i class="iconfont fontclassarrow_right"></i>
					</view>
				</picker>
			</view>
		</view>
		<view class="intention-phone">
			<view class="title">
				联系方式
			</view>
			<view class="phone">
				<input placeholder="请输入联系方式" border="none" v-model="addForm.phone"></input>
			</view>
		</view>
		<view class="intention-txt">
			<view class="title">
				自我描述
			</view>
			<view class="textarea-box">
				<textarea maxlength="-1" v-model="addForm.txt" style="width: 100%;"
					:placeholder="placeholder"></textarea>
			</view>
		</view>
		<view class="btn" @click="ok_form()">保存</view>
	</view>
</template>

<script src="./page.js"></script>

<style scoped lang="scss">
	@import "./page.scss";
</style>